package edu.unr.cater.npap.client.managed.ui;

import com.google.web.bindery.requestfactory.gwt.ui.client.ProxyRenderer;
import edu.unr.cater.npap.client.proxy.PlatformUserGroupProxy;
import edu.unr.cater.npap.client.proxy.PlatformUserProxy;
import java.util.Set;

public class PlatformUserGroupProxyRenderer extends ProxyRenderer<PlatformUserGroupProxy> {

    private static edu.unr.cater.npap.client.managed.ui.PlatformUserGroupProxyRenderer INSTANCE;

    protected PlatformUserGroupProxyRenderer() {
        super(new String[] { "userGroupName" });
    }

    public static edu.unr.cater.npap.client.managed.ui.PlatformUserGroupProxyRenderer instance() {
        if (INSTANCE == null) {
            INSTANCE = new PlatformUserGroupProxyRenderer();
        }
        return INSTANCE;
    }

    public String render(PlatformUserGroupProxy object) {
        if (object == null) {
            return "";
        }
        return object.getUserGroupName() + " (" + object.getUserGroupName() + ")";
    }
}
